<? $header->display(); ?>

<h1>Latest News</h1>
<div class="search">
<form method="get" action="news.php">
<a href="<?=$linkLatest?>">Latest News</a>
&nbsp;|&nbsp;
<a href="<?=$linkBrowse?>">Browse All News</a>
&nbsp;|&nbsp;
<strong>Search</strong>:
<input type="text" name="q" value="" style="width: 100px" />
<input type="submit" name="search" value="search" />
</form>
</div>
<div class="content">
<?

if ($view == 'detail') { 
	$st->display();
} else {
	foreach($news as $st) {
		$st->display();
	}
}

if ($view == 'search' || $view == 'browse') { 
	$paging->display();
}

?>
</div>

<? $footer->display(); ?>